package cn.zyk.result;


import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Author eHlw
 * @Date 2024/9/13 20:49
 * @description:
 */

@Getter
@AllArgsConstructor
public enum CodeEnum {
    // 异常
    UNKNOWN(500,"系统内部错误，请联系技术支持"),
    TOKEN_NOT_FOUND(500, "没有TOKEN"),
    TOKEN_ERROR(500, "TOKEN校验失败"),

    // 成功
    GLOBAL_SEARCH_SUCCESS(200, "查询成功"),
    GLOBAL_ADD_SUCCESS(200, "添加成功"),
    GLOBAL_EDIT_SUCCESS(200, "修改成功"),
    GLOBAL_DELETE_SUCCESS(200, "删除成功");
    private int code;

    private String msg;
}
